from django.urls import path

from . import views
app_name = 'zgh0381'
urlpatterns = [
    path('login/',views.login,name = 'login'),
    path('login_check/',views.login_check,name = 'login_check'),
    path('loginout/', views.loginout, name='loginout'),
    path('project/',views.project_list,name = 'project'),
    path('pro_json/',views.pro_json,name="pro_json"),
    path('projectlist/', views.projectlist,name='projectlist'),
    path('project_deleteid/<id>/',views.project_delete,name='project_deleteid'),
    path('projectcreate/', views.projects_creates, name='projects_creates'),
    path('pro_createcheck/',views.pro_createcheck, name='pro_createcheck'),
    path('project_detail/', views.project_detail, name='project_listid'),
    path('project_dodetail/<projectid>/', views.project_dodetail, name='project_listid'),
    path('project_update/', views.project_update, name='project_updateid'),
    path('project_update_data/',views.project_update_data,name='project_update_data'),
    path('project_do_update/',views.project_do_update,name='project_do_update'),
    path('userlist/', views.userlist, name='userlist'),
    path('user_json/', views.user_json, name='user_json'),
    path('user_deleteid/<userid>/', views.user_delete, name='user_deleteid'),
    path('usercreate/',views.user_create,name='user_create'),
    path('user_create/',views.user_docreate,name='user_docreate'),
    path('change_pwd/',views.change_pwd,name='change_pwd'),
    path('change_dopwd/',views.change_dopwd,name='change_dopwd'),
    path('user_detail/', views.user_detail, name='user_detail'),
    path('user_dodetail/<userid>/',views.user_dodetail,name='user_dodetail'),
    path('edit_user/',views.edit_user,name="edit_user"),
    path('user_update/', views.user_update, name='user_updateid'),
    path('grouplist/', views.group_list, name='grouplist'),
    path('group_json/',views.group_json,name="group_json"),
    path("group_update/",views.group_update,name="group_update"),
    path('group_doupdate/',views.group_doupdate,name='group_doupdate'),
    path('groupcreate/', views.group_create, name='group_create'),
    path('group_docreate/', views.group_docreate, name='group_docreate'),
    path('group_delete/<groupid>',views.group_delete,name='group_deleteid'),
    path('manage_group/',views.manage_group,name='manage_group'),
    path('group_userjson/',views.group_userjson,name="group_userjson"),
    path('group_users/', views.group_add, name='group_adduser'),
    path('group_addjson/', views.group_addjson, name='group_addjson'),
    path('group_adduser/', views.group_users, name='group_adduser'),
    path('group_deleteuser/',views.group_deleteuser,name="group_deleteuser"),
    path('rolelist/', views.role_list, name='rolelist'),
    path('role_json/', views.role_json, name='role_json'),
    path('rolecreate/', views.role_create, name='role_create'),
    path('role_docreate/',views.role_docreate,name='role_docreate'),
    path('role_delete/<id>/', views.role_delete, name='role_deleteid'),
    path('role_update/', views.role_update, name='role_update'),
    path('role_doupdate/',views.role_doupdate,name='role_doupdate'),
    path('flavors/',views.flavors,name='flavors'),
    path('flavors_listjson/', views.flavors_listjson, name='flavorlist'),
    path('flavordetail/<id>/', views.flavors_detail, name='flavordetail'),
    path('flavors_detail/',views.flavor_page,name='flavor_detail'),
    path('serverlist/', views.server_list, name='serverlist'),
    path('serverlist_json/',views.serverlist_json,name='server_json'),
    path('imagelist/', views.image_list, name='image_list'),
    path('imagelist_json/',views.imagelist_json,name='imagelist_json'),
    path('Summary/',views.Summary,name="Summary"),
    path('server_create/',views.instance_create,name='create_instance'),
    path('select_flavor/',views.select_flavor,name='select_flavor'),
    path('select_images/',views.select_images,name='select_image'),
    path('instance_name/',views.instance_name,name='instance_name'),
    path('servercreate/', views.server_create, name='server_create'),
    path('instance_detail/',views.instance_detail,name='instance_name'),
    path('serverdelete/<serverid>/', views.server_delete, name='server_delete'),
    path('serverdetail/<serverid>/', views.server_detail, name='serverdetail'),
    path('serveron/<serverid>/', views.server_on, name='serveron'),
    path('serverestart/<serverid>/', views.server_restart, name='serverestart'),
    path('serverstop/<serverid>/', views.server_stop, name='serverstop'),
    path('serverunstop/<serverid>/', views.server_unstop, name='serverunstop'),
    path('serverhang/<serverid>/', views.server_hang, name='serverhang'),
    path('serverehang/<serverid>/', views.server_rehang, name='serverrehang'),
    path('shotcreate/', views.shot_create, name='shotcreate'),
    path('serveroff/<serverid>/', views.server_off, name='serveroff'),
    path('imagelists/', views.image_lists, name='image_lists'),
    path('image_create/', views.imagecreate, name='imagecreate'),
    path('upload_file/',views.upload_file,name='upload_file'),
    path('imagecreate/', views.image_creates, name='image_create'),
    path('imagefile/', views.image_file, name='image_fileid'),
    path('imagedetail/<imageid>/', views.image_detail, name='image_tailid'),
    path('imagesDtail/',views.imagesDtail,name='imagesdatil'),
    path('imagedelete/<imageid>/', views.image_delete, name='image_deleteid'),
]